package com.ccrfid.rmc6.repository.business.entrance;

import com.ccrfid.rmc6.entity.business.entrance.PersonnelAttendanceRecordEntity;
import org.springframework.data.repository.Repository;

import java.sql.Time;
import java.sql.Timestamp;
import java.util.Date;
import java.util.List;

public interface PersonnelAttendanceRecordRepository extends Repository<PersonnelAttendanceRecordEntity, Long> {
    //
    PersonnelAttendanceRecordEntity save(PersonnelAttendanceRecordEntity entity);

    List<PersonnelAttendanceRecordEntity> getAllByPersonnelId(Long personnelId);

    List<PersonnelAttendanceRecordEntity> getAllByEnterTimeBetween(Timestamp startTime, Timestamp endTime);

    List<PersonnelAttendanceRecordEntity> getAllByPersonnelIdAndEnterTimeBetween(Long personnelId, Timestamp startTime, Timestamp endTime);

}
